Update filter_base.rb

Check filter object on nil