Revert "Fix some wxWidgets 2.9 DEBUG asserts."

This reverts commit 60415436de7099e3a2df486636af9dfec5149946.
Really fix those wx asserts.