Fix a NULL <-> 0 confusion.