Allow JSON to be turned off in render_with
Replace RuntimeError with bool(request)