core: save and restore mute state in command /mute (bug #41748)