[Core] Segfault when moving groups in roster fixed