Fix open issues query. This query should return only test which fail now, however it was returning every test that has ever failed, even if it is fixed now.