Add null check in BitmapFont#toString()

BitmapFont loaded from FreeTypeFontGenerator does not have a fontFile set.

Fixes #2510