Fix bug that returned an empty file for a resource that did not exist.