Fix issues when styleVariables is undefined
Merge pull request #319 from hannu/no-variable-fix

Fix issues when styleVariables is undefined