Photochemical removal of headspace oxygen by a singlet oxygen reaction