messaging: Add wrap check to messaging_rec_dup