Fix statusline restore when buffer is deleted.