Handles the IdNotFoundExceptions.