bz19448: validate filters before passing them to ItemList

This change also changes when we build the our titlebar attribute.  I
think this change is also good because otherwise we would crash if
extensions defined filters.