Add fix to Application to make sure it doesn't call its onDocumentReady() method if the Application has already been destroyed.