v.20.1Bug Fix

Fix SIGSEGV with optimize_skip_unused_shards on type conversion failure

Fix SIGSEGV with optimize_skip_unused_shards when type cannot be converted. #9804 (Azat Khuzhin).