Bug 1086886 - Add guard for empty managed_files.yml

* Updated unit tests