_eval_is_zero implemented for Pow class, fixes issue #7965

wrong math

perhaps, it's just wrong indentation of if/elif blocks.