Fixes msg referenced before assignment
Merge pull request #47 from robations/hotfix/jenkins-msg

Fixes msg referenced before assignment