added simple error handling for wordnik api