No worries Stefan,
You asked an important question and raised an issue that needs to be solved (albeit with the common programmer mistake of passing a null, we all do that by the way). The solution I supplied is merely a workaround and not the optimal solution anyway. Marco is busy with that (the optimal solution, that is).