Solve the problem when adding template
Solve the problem when adding template

Fix the bug that when user adding a template in dashboard, it always toasts "Unable to validate the Vitrage Templates service.".

Change-Id: Ifc4974150308c8b648c26f62129fac08d16e19e1

openstack/vitrage-dashboard,openstack/vitrage-dashboard,openstack/vitrage-dashboard,openstack/vitrage-dashboard