document.registerElement option argument should be optional

Fixes #406