Modern Family icon Sarah Hyland was left fighting for her life after she discovered she had a hidden health condition - but the impact on her led her to think of the worst possible outcome