Creating pul_cancel as a wrapper over pul_set_status
Changes of the common query factory to return a None value if invalid constraint specified