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 relates in part to #1798.