file_read_firstline: avoid warning with empty files