Correctly set rb_eDocumentCreationError