A motorbike was "pre-emptively stung" to prevent a possible police pursuit in Bradford.