fix assert || segv on invalid params in json request