fix assertion failed with debug version of MadEdit/wxMEdit when mouse capture lost