Fix TargetInvocationException from xml profile serialization issues (2279035)

this is good, might add in one entry where ManagementEndpoint is null as well as the 'bad data' one