Fix update conditions.

Use "not ... is None" and "is None".