Added $query to apply_filters() function

Fixes
- PHP Notice:  Undefined variable: query
Merge pull request #839 from sumobi/downloads-shortcode

Added $query to apply_filters() function