Fixed a crash if the title button was clicked and there was nothing in
the stack