Fix error identifying whether a Vertex is historic or not.

A Vertex is historic only if it has HISTORIC_ELEMENT_PROP_KEY propery key
AND its value is true.

This patch add a condition to the if statement to check that
property's value is true.