Fixes #1206. v0.40.1 bad compilation for styles with invalid colors