Add check before removing mismatching PR number from the rebased set