[#1353] Fix exception in resource listing, add tests
Merge pull request #1353 from okfn/1353-exception-resource-listing

Uncaught exception on resources listing