Validate roles assigned to stage authorization on template update through API #4176
Template update through API does not validate presence of a role. Thereby a non-existent role can be added to the template.
This leads to validation errors while saving the template from UI or updating the config-xml. Since the config_xml has errors a server restart would fail as well.