keystore.c: Fix 'payload_len' may be used uninitialized