Rescue addressable uri error with proper error message

I noticed the default input for pages#index, 'http://', throws a 500 error (see:
http://discovery.my.usa.gov/pages?url=http%3A%2F%2F). I added a rescue clause to
render a more informative error message using json. I also included a test against
such malformed URIs.