check if hogPid was set before resetting it
Merge pull request #2079 from amet/hogpid

[osx] check if hogPid was set before resetting it