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.

It may even be worthwhile checking if filter_result is a ActiveRecord::Relation?