Update filters.rb

Only apply the filter onto the result if it's valid, a badly coded filter block could return anything which would reset result. Eg:

    filter(:field) do
        nil
    end

It may even be worthwhile checking if filter_result is a ActiveRecord::Relation?