fixed error when no image selected in a widget
Merge pull request #1 from spanasik/empty_field

fixed error when no image selected in a widget