Fix duplicate issues when searching.

Don't search for open and closed as the legacy request doesn't work.
This is just a temporal solution, I've added a TODO to fix the request
ASAP.

Fixes #495
Merge pull request #636 from jonanp/issue-search

Fix duplicate issues when searching.