Allow usage of ApiProblemResult without a controller

- Check if we have a controller and response before attempting to set
  the status code on the response