Fix crash when user quickly taps on an image while performing a swiping motion