Avoid NPE when panel is not available

Hi Antonin,
I noticed one exception when running FireQuery with Firebug 1.12
The patch is simple.
Honza