Small bugfix to pagination of GetAllInvoices API call.