Fix Pow._eval_is_integer handler for negative exponents

Closes #8580