Fixed crash on DismissWorker

Crash was due to missing/dismissed rootViewController.