fix getNewInvoiceDocRef for empty docNameHint.