Dynamic Widgets with Prototype theme

Until version 1.4.0 Dynamic Widgets had a problem dealing with the Prototype theme throwing a PHP warning on the screen:

Warning: Invalid argument supplied for foreach() in /wp-content/plugins/dynamic-widgets/dynwid_worker.php on line 25

A very weird error as Dynamic Widgets is doing something completely legal on a component of the WordPress sidebar / widget system. After some investigation it turns out the Prototype theme adds some (illegal) values to this component. Dynamic Widgets in its turn doesn’t expect such values and throws the above warning. I’ve added a workaround for this in development version 1.4.0.1.