Extend Equals() to compare to null

If null is given, false is returned immediatly. Previously, this
case was not considered and a NullReferenceException was raised.