Fix typo in pending exception logic.