Julia Louis-Dreyfus felt like she was ‘backed into a corner’ to her reveal cancer diagnosis