Avoid nullpointer in service lookups