Initialize pointers to NULL in nagioseasier_query_handler

`rest` appears to be left uninitialized if `obj` is `NULL`.

cc @wfarr