keystore.c: Fix warning ‘payload_len’ may be used uninitialized in th…