Add null check for JSON payload sent by Enable-AzureWebsiteApplicationDiagnostic