fix wx 3.0 crash when rightclicking to empty chatpanel:

part of #234