term filter not nil / not missing fix
Fixed handling of nil