Hi Markus,
I've tested the code I have in your situation and I am not getting the error. This part of the script I do not thin k is needed but was requested by the sponsor. If you continue to have problems then I'll remove it.
I've re-uploaded the script so download again from the top of the page.
