Update widget.js

Fixing bug in case trying to create a QR with content null
Merge pull request #2 from jbpiot/master

Empty content fix