Prevent fatal error about creating references.

 * Cannot create references to/from string offsets nor overloaded objects in widget.php on line 230