@moxajogani,
I have run into this same situation on a new install of WordPress. I looked at the wordpress-importer.php file and the changes you recommended are already in place. Im a new WordPress admin so I don’t even know the right questions to ask. Can you guide me in the right direction on fixing this import problem?