BUG: Fix lack of NULL check in array_richcompare.

The lack of this check led to a segfault.

Closes #4613.
Merge pull request #4614 from charris/fix-gh-4613

BUG: Fix lack of NULL check in array_richcompare.