It was fine before I changed the bulbs, and there was visible debris stuck to it when I removed it after it leaked so this would allow moisture in. I'm confident its okay, as it seems to have dried out alright in the sun yesterday with the back off, and stayed clear overnight.
I'm also planning to add some silicone grease to both of them at the weekend too, as an extra precaution. Should be able to inspect the light properly once its off the car too for any minor cracks etc.
For your benefit though, check this out.
http://www.realoem.com/bmw/enUS/showparts?id=BT52-EUR-05-2004-E85-BMW-Z4_30i&diagId=63_0758
Part numbers for both covers are on there.