Retrieve Ad view fix

Fixed an bug where trying to view an ad that does not exist crashes the
server. Changed the route to look for the error that comes out of the db
when an id for an ad is not found and redirect to the index page instead
of crashing.