TDI-31425 fix bug: If import items operation choose wrong root
folder(lots subfolder under it), then importing operation will never
stop.
https://jira.talendforge.org/browse/TDI-31425

Do some improvement