(PUP-1283) Protect against misconfigured services

This implements the patch that has been submitted upstream to win32-service at
https://github.com/djberg96/win32-service/pull/18