Test that a good error message is returned if referencing bad packaged resources through urls
Fix internal server error when parsing bad packaged resources