Index: gtkhtml/gtkhtml/htmlengine.c
===================================================================
--- gtkhtml/gtkhtml/htmlengine.c	(revision 8665)
+++ gtkhtml/gtkhtml/htmlengine.c	(working copy)
@@ -1793,7 +1793,7 @@
 		HTMLShape *shape;
 
 		shape = html_shape_new (type, coords, url, target);
-		if (shape)
+		if (shape && e->map)
 			html_map_add_shape (e->map, shape);
 	}
 
