Catch bad resource URIs.