I have tried this fix but it did not work. I wondered if anyone else had any suggestions. I am in M2.1.2 using a custom theme based on the parent blank theme.
Found a fix for this on git hub
That worked for me although I also had to clear my static files and redeploy theme to get it to work. Not quite sure why.