fix an npe in the services layer

TBR @umop