Prevent NPE when removing back button from navbar

Change-Id: I965c8b3884a33ece4728a5db8b8098761d3bc838