The loss of a pet can affect you more than losing a loved one, a new study shows. With one exception.