TRUNK-3010

This is a fix for issue https://tickets.openmrs.org/browse/TRUNK-3010.
The error message will be handled properly now if the user opens an url with non-existing patient id.