helpers: fix potential NPE in payment_plugin

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