Fix #1544

Fix #1544.
We can't debug-print the geometry of serialized edges with NULL from/to vertices as we need them to get the geometry now.