Improved error handling.
Improved error handling.

wmcmurray/bwip-js,wmcmurray/bwip-js,tedtang77/barcode,tnyeanderson/bwip-js,tedtang77/barcode,darkwebdev/bwip-js,darkwebdev/bwip-js,tnyeanderson/bwip-js