Handle future warning.

x0==None will result in elementwise comparison in the future. Replaced with x0 is None