client: fix bug in payAllInvoices

When externalPayment wasn't specified, "null" was passed as the amount
causing an error on the server side.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>