Fix empty YAML file causing crash with latest js-yaml