Bug 1054403 - Reset empty metadata.json file

* Use defaults if file is empty
Merge pull request #4507 from jwhonce/bug/1054403

Merged by openshift-bot