Effect of Initial Imperfections on the Instability of a Ring Confined in an Imperfect Rigid Boundary