Updated import.php to be able to handle recursive call of import_chunk from js