Handle situation when ModelAndView is null (e.g. @ResponseBody is used)