Compatability fix due Redmine introduced IssueQuery class http://www.redmine.org/projects/redmine/repository/revisions/10965