solve_univariate: fix issue arising from #7843

Union(S.EmptySet, FiniteSet(-sqrt(-I), sqrt(-I)))
goes to infinite recursion goes to infinite recusion.
Because of such behaviour solve_univariate_complex goes
to infinite recursion even for some simple polynomials.