Fix a small difference between the cloudi module and the cloudi_service module with how PatternPid can be undefined.