Avoid crash when zero points read from text file

The crash was due to a floating point exception brought on by dividing
by zero.  Reading zero points and failing to get to EOF is now
considered a fatal text file format error.