Fixed: Issue where 404 errors during import could halt the import process
Fixed: Check for the value of $profile before using it