Thank you for the description. I have not said this earlier but the existing code should obviously be more defensive.