Fix crash if there is no back button

Change-Id: I85098cac1910e085bb6b1c76ae0c322efc25927b