Fixed checks in mod_process_reply()