Avoid crash on empty/short pubkey.