Effects of disorder on the correlation energy of rings of hydrogen atoms