Fixed undefined index error when gathering course supplements