Fixed an edge-case protocol error with canceled invitation.