Support service-types without endpoints

Currently get_endpoint raises an IndexError if a service-type is
defined without endpoints. This change corrects get_endpoint by
raising an EndpointotFound in such case.

Change-Id: If9951b0b306bc2ad57e188daf2a51310de599dcb
Merge "Support service-types without endpoints"