Fixing issue with None being returned

{} is expected
Merge pull request #1445 from psav/fix_yaml_loading

Fixing issue with None being returned