Properly get if navbar is visible

Change-Id: I769d0b48dd27aa32cd5bd6ec8d57413ec9d67df6