Fix for document filter when the keywords param is an array

shouldn't happen but maybe scrapers are doing this.