Check for errors when reading lines from ini files.

Fixes issue 7283.