The health impacts of the so-called "widowhood effect" can change with age, a new study finds.