Invert the order of a comparison to account for the fact
that in Python 3 None is not comparable to ints any more.