Or just invert the order of these two operations.
(It would loose subscripted italics, though. Then again, the OP's code also looses just about everything else in combination with Italics -- underlining, small caps, strikeout -- so it's probably not a huge issue.)