Handle empty data files correctly

Without this patch, the following error was displayed when reading an
empty data file:

  undefined method `[]' for false:FalseClass