Fix IntegerExponent erroring on symbolic input.

IntegerExponent's pattern was changed to evaluate
only on [_Integer, _Integer] input.