Fix an 'if' condition.

"if 'uploads' or ..." is always evaluated to true,
This seems to have no bug related to it for now (not that
I know).

But may be a source of bug, when  refactoring or fixing
further problems.

Change-Id: Icc3f45dc1b85c594f172cfa8075ff9cfa01aacb4