Fixed an assertion failure in case of the configuration was not a valid JSON object.