Fix for invalid check of freetype version when no freetype library exists [backport to 1.4.x]

Fixes an invalid check for freetype version when freetype-config does not exist or there was an error. Specifically, only performs ```version_from_header``` on version when freetype-config returns a value and ```version``` is set.