src/guicontrol.cc: Fix to build against wxWidgets built with
assertions disabled.  Reported by Martin Sluka.