Fix wrong behaviour of is_json_object/1 when mochijson2 format is used