Adding what I think is a working fix for the bug at https://github.com/TEIC/Stylesheets/issues/15
Only briefly tested for now.