Throw 404 exception if object not found for show/edit.