Adapt if the application object is destroyed
I haven't been able to reproduce the issue from the bug but this seems to be the issue.
BUG: 390647