No, helmets aren't killing cyclists, car drivers are.
In the 1980's the New Zealand government removed tariffs on imported cars leading to a massive growth in car ownership.
More cars leads to more driving and less cycling. Then, with more cars on the road, cycling becomes more dangerous.
This trend just happened to coincide with the change in helmet law.