Update Vertex.java

Equals now returns false for null-references