Fix Copy selected rows as sqlInsert Script

-Fix: Copy Selected Rows as SQL Insert Script (on context menu of
queryTab grid) caused application to crash