Handle invalid URIs

There is some data that is causing the /status page to 500
Merge pull request #927 from theodi/hotfix-handle-invalid-uri

Handle invalid URIs