Fix for issue #14: comparison with null should not throw.