[#1846] fix incorrect error check in pg_mod_resc_op causing failure on centos