Fix detachEvent for IE11 on Windows 8+.

This was fixed for attachEvent in 76dacf7.