Added a runtime check for the presence of the view renderer in AbstractController::renderAsString().