add nil error check on error text
Merge pull request #82 from sirwolfgang/master

add nil error check on error text