Fix a notice if $services isn't defined.