fixed problems when getNonBlankLine reaches EOF