What were the circumstances behind getting pulled over? Was it only dark out or was it foggy/snowing/raining? I assume you had it out for a while since you haven't said that it had just happened.
If I were a cop, I'd ticket you too if there were inclement driving conditions(see above) but not...