Neville, as per the act, in NZ if the emergency arises in flight the requirement to be lawfully entitled to operate the aircraft doesn't apply.
So why the court case then?
I'd say the emergency didn't happen in flight. The emergency was the reason for the flight.
That aside I'd say it's a very silly situation.