Avoid null object reference bug during rapid touch input.