fixed validation of empty json request body