Fixed case where config file might be empty

* Yaml::parse returns null for empty file, which caused error on foreach