Bug 1086886 - Add guard for empty managed_files.yml

* Updated unit tests
Merge pull request #5259 from jwhonce/bug/1086886

Merged by openshift-bot