Topological protection of biphoton states