Fixed null exception when application is not found in repo