Fix possible QS NPE if navbar was not set

Change-Id: Id66b3afdc1bdb73f827d7a055f6c2926057f3016