check the arity of #document_partial_name before calling the new 2-arg form