Fix touch check when IE doesn't specify the event object