Make sure nil elements don't go into the widget
Merge pull request #9 from theodi/bugfix-nil-elements

Make sure nil elements don't go into the widget