fixup! Test the initialized flag for all arguments to Document#createEvent.