Fix Pow._eval_is_integer handler for negative exponents

Closes #8580
Cleanup for Pow._eval_is_integer
Merge pull request #8584 from skirpichev/8580-fix

Fix Pow._eval_is_integer handler for negative exponents