Hide uploads and nearby to non-JS users

Regression introduced by I36b77cfa605d561fcbb8a5ed84fcbfd87722411f
This fixes the failing browser test.

Change-Id: I34d03b8278941ae972a3dafdfe006a38b2dbc106
Merge "Hide uploads and nearby to non-JS users"