Worked around a BGL bug that causes a segfault if you lookup_edge on an empty graph