ClickHouse v.21.8.10.19

Got exсeption when aes_encrypt_mysql got unexpected result as input

test case:
````
create table test_table
(
    value           Nullable(String),
    encrypted_value Nullable(String)
)
    engine MergeTree order by assumeNotNull(value);

insert into test_table
select 'test_value1', aes_encrypt_mysql('aes-256-ecb', 'test_value1', 'test_key________________________');
insert into test_table
select '', aes_encrypt_mysql('aes-256-ecb', '', 'test_key________________________');
insert into test_table
select null, aes_encrypt_mysql('aes-256-ecb', null, 'test_key________________________');

select aes_decrypt_mysql('aes-256-ecb', value, 'test_key________________________')
from test_table
````

got `Failed to decrypt. OpenSSL error code: 503316603: while executing 'FUNCTION aes_decrypt_mysql` as exception
const auto pad_to_next_block = block_size == 1 ? 0 : 1;
            for (size_t r = 0; r < input_rows_count; ++r)
            {
                resulting_size += (input_column->getDataAt(r).size / block_size + pad_to_next_block) * block_size + 1;
                if constexpr (mode == CipherMode::RFC5116_AEAD_AES_GCM)
                    resulting_size += tag_size;
            }
#if defined(MEMORY_SANITIZER)
            encrypted_result_column_data.resize_fill(resulting_size, 0xFF);
#else
            encrypted_result_column_data.resize(resulting_size);
#endif
        }
        auto * encrypted = encrypted_result_column_data.data();
        KeyHolder<mode> key_holder;
        for (size_t r = 0; r < input_rows_count; ++r)
        {
            const auto key_value = key_holder.setKey(key_size, key_column->getDataAt(r));
            auto iv_value = StringRef{};
            if (iv_column)
            {
                iv_value = iv_column->getDataAt(r);
                
                if (iv_value.size == 0)
                    iv_value.data = nullptr;
            }
            const StringRef input_value = input_column->getDataAt(r);
            if constexpr (mode != CipherMode::MySQLCompatibility)
            {