To reply to your question, what you were meant to do was actually cut a big hole on cap, so you can fit all your wires and stuff through.
Not sure about your HID kit, but mine came with a litte rubber plug, that plugs into that big hole that you'd cut, so nothing can get into the headlight.
If your HID kit didn't come with the rubber plug, then I guess use some sort of tape or something.