CLOUDIFY-2180 Fixed assert to work when admin api still uses old esm