Add Try-Except Clause

Adds a Try-Except clause around the casting of value to catch malformed font files.  (Such as RomanS.cxf in QCad 3.7)