XPCKit: Safeguard against passing NULL pointer to xpc_release() and dispatch_release()