Improved handling of emtpty YAML files and added according test.