move minpoly handling to is_negative and is_positive

Failures when trying to make this go in the is_zero routine were
catastrophic and random:
https://travis-ci.org/smichr/sympy/builds/39894250