Fix segfault on invalid bounding FIG when patching dot

Got a segfault when running doxygen on the doxygen source code.