fixed an issue when adding endpoints to a role (VM)

Apparently the order of child xml elements on the InputEndpoint
matters, the ordering was causing the error "InputEndpoint has a
missing, misspelled or out of order element" when trying to add a new
endpoint.