Avoid triggering undefined behaviour (std::memset(nullptr, 0, 0)
) if an invalid string is passed to DecodeSecret(...)
.
Background reading: memcpy (and friends) with NULL pointers
Steps to reproduce:
0./configure --with-sanitizers=undefined && make check && ./test/functional/test_runner.py