Fix logic in CeleryFilter