[TIMOB-18175] Check if ViewController dismissal
Merge pull request #6469 from vishalduggal/timob-18175-35X

[TIMOB-18175] (3_5_X) Check if ViewController dismissal