fix error when form validation fails and renders widget with string value
Merge pull request #13 from rohanza/master

fix error when form validation fails and renders widget with string valu...