Could you not just walk the bike home ? Like give the cop the spark plug so he knows you won't ride it then walk off with your bike or pedal it away ?
Just an idea for a next time. No way I would leave my shit. Have a smoke and go right back is the way to do it.