Bug 827268 - Avoid useless onVisit work on transition filtered queries.
r=Mano