Fix issue #115

Moved "bailout" code to the top of the Filter.filter method, so it catches empty list and tuple.