Check if data detector is nil before storing in dataDetectorsCache