Avoid ndarray comparisons with None.

In future versions of numpy, this will not return `False` as it currently does.

Fixes #144