Whoopi Goldberg was told by doctors "she had a 30 percent chance of dying" after mistaking pneumonia for a common cold