DDF-848 Fix bug to have Filter plugin update total results returned and ...

...handle NULL pointer exception and update total results returned