Closes #34 - Check if pr == nil in bitbucket hook