Fix crash when executing Vector2D.equals(null)