browser: emit layoutAboutToBeChanged() before destroying home item (fixes #8221)