Possible NPE on QS if navbar was not set

Change-Id: Ic6255b98b1c1b2a2c50842f85db49bb427e7d833