catch invalid url and render error message
Merge pull request #996 from modilabs/fix_qrcode_false

catch invalid url and render error message