Make sure that handlers always return Json::objectValue.
Add an assertion to make sure that we always return a Json::objectValue.