Fixing issue when adding web apps in tenant mode