parser-helper: Ensure file_next() does not remove the sentinel item