Update listfilter.php

My search form was broken (Tried it multiple times.)
Needed the Legacy class for in Joomla 3.0 
Also no check to see if the searchfilters are empty or not and then you get notices about the empty array $searchfilters