Throw NotFoundHttpException if object/batch action doesn't exist

Currently if we try to access to an invalid object action (or batch action), server responds a 500.

This PR handle this case and return a 404.