Ah I see, it's here that causes the string "null" to be used, this should really be quoted so that it's valid html, and if you just use the string "All" it removes the need for the check against "null" elsewhere.