added a null check
Merge branch 'master' of https://github.com/dvargo/pm