Loading a file that has had everything deleted fails

If you delete a file and then attempt to reload the page nothing appears.