Fix segfault on invalid bounding FIG when patching dot