Fix error when event.touches[0] is undefined