Fix font compiler to handle correct exception type