Return ErrorFont in loadFont when the fontRef is undefined
Merge pull request #4922 from Snuffleupagus/undefined-fontRef

Return ErrorFont in loadFont when the fontRef is undefined