Properly deal with event handlers that the debugger cannot unwrap (bug 1041266). r=vporof