don't try to repaint stuff if there's no target to paint on
don't try to repaint stuff if there's no target to paint on

First part of a fix for bug 16822

freedesktop-unofficial-mirror/swfdec__swfdec-mozilla,freedesktop-unofficial-mirror/swfdec__swfdec-mozilla,freedesktop-unofficial-mirror/swfdec__swfdec-mozilla