protect against crash in touch event handling