A compassionate boy who grew out his hair to selflessly donate it to cancer patients was diagnosed with a rare form of cancer.