Fix restoring draft messages from localStorage if editor mode differs (#1490016)