[[ Bugfix 12971 ]] Check for errors *before* trying to type-convert the result
[[ Bugfix 12971 ]] Fix the fontStyles issue too
Merge pull request #950 from runrevfraser/bugfix-12971

[[ Bugfix 12971 ]] Check for errors *before* trying to type-convert the ...