Fixes #919

I've experienced the same issue as described in #919, although only when minifying.