Removed document.write from CurrentInstances.cshtml and replaced with jQuery as it was breaking v7 backoffice.
Replaced .Length > 0 with String.IsNullOrEmpty for Azure env vars which is a better check.