ignore empty YAML files

YAML.load returns false or nil for an empty file and for a file with
only the YAML header respectively.
'next if data.empty?' would raise an exception if reached.