Add Null check.

Fixes https://github.com/MindTouch/PullRequestService/issues/19