Fixed bug

Fixed a bug where attempting to call `html5_qrcode()` on an element not yet attached to the DOM causes video and canvas to resolve to undefined.