Don't crash when the fonts are not yet loaded

closes #3157