beremiz

fix Traceback if search icon on library panel is clicked, when no
category/item is selected in the library.

The problem is here, that if nothing is selected method GetSelection()
returns root item, that doesn't have any python data associated with it.
This issue seems to be wx3.0 specified, because it doesn't exist
with wx2.8 on Windows.
<HTML>
<BODY>
<CENTER>
<IMG SRC="../images/splash.png">
<BR><BR>
<font size="3">Beremiz is an Open Source framework for automation.</font>
<BR><BR>
<a href="http://www.beremiz.org/">http://www.beremiz.org/</a>
<BR><BR>
<TABLE border="0">
<TR>
<TD align="right" valign="top">
Contributor :
</TD>
<TD align="left" valign="top">
University of Porto<BR>
<a href="http://www.fe.up.pt/si/web_page.inicial">http://www.fe.up.pt/si/web_page.inicial</a>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>