Allow null prototype obj to be compared for equals

Fixes #729
Merge branch 'rohit-equals-null-protoObjects'