All you have to do is be honest, and nice with the cop. All the times I've gotten pulled over (and thats quite a bit), I've been completely honest and nice and only gotten 2 minor tickets. Hell, I was pulled over 2 weeks ago for not having a front plate on, as well as having a cover over my rear plate, and ontop of that, I couldnt find my new registration and insurance tags, and after a nice conversation I had with the cop, he let me off with a warning and even told my insurance company to send me a new card. And where I got pulled over, the cops are really nasty.
I have no complaints over what cops do, because its their job. Be nice to them, and they will be nice to you. Law requires operative low/high beams, so next time, obey the law. Thats why its called a warning. Pretty straight forward of a concept if you ask me

.