Make last argument of createDocument() optional. Stopgap until new Document() is sorted. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22959