Fixed bug with module refresh job which was being run too frequently
after deleting an application.