Fixes the issue with the chat rooms added from "Add chat room" dialog that
is not saved after restart.