Fix issue #115

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