Allow null prototype objects to be compared for equals

This should fix #729. Let me know if I need to do anything else or add more tests.