Minor fix to behavior when trying to manipulate a file containing no data