Stop evaluation of polar_lift if arg.is_number but not finite (or extended_real)
Stop evaluation of polar_lift if arg.is_number but not finite (or extended_real)

This prevents us from infinite recursion in case

e = 8*exp_polar(0)*log(1 + exp_polar(0)*exp_polar(-I*pi)) - 4/(-1 +
exp_polar(0)) + 4*exp_polar(0) + 4*exp_polar(0)*polylog(2, exp_polar(0))
r = polar_lift(e)

diofant/diofant,skirpichev/omg