Fix a hang that occurs when scanning a corrupt TrueType file.

Stop accepting -1 (EOF) as an array index when reading names from a TrueType file.

This replaces #2010 and relates in part to #1798.