v.21.3Bug Fix

Add checks to directory name parsing for async INSERT to prevent SIGSEGV

Add proper checks while parsing directory names for async INSERT (fixes SIGSEGV). #20498 (Azat Khuzhin).