fixed erroneous check for warnings string
Merge pull request #53 from philstark/issue_36

fixed erroneous check for warnings string