Added None type checking in __eq__