prevent the "select all" from being created twice

in my form (auto generated by django) I create a filed multiselect-all, in order to know when all is selected and make filtering easier on the DB.
latest version (from HEAD) creates a duplicate "select all" options.
this code prevent the duplicate from being created.