After four years and multiple events, H&M and the nonprofit have ended their contract earlier than expected.