This fixes a bug that could occur if a custom Endpoints resource was created before a Service was created.