Preservation of Isometry Groups under Ricci Flow