Topologically protected ground state degeneracies in a two-spin system