Application deletion failure in tenant mode - fix