Allowing resize tty to only work when container is started
Addresses #8728

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
Merge pull request #8737 from brahmaroutu/resize_uponstart_8728

Allowing resize tty to only work when container is started