Useless code path in import_from_xml causing errors removed

@dianakhuang @sarina @nasthagiri 

It appears as if a useless code path was causing @carsongee errors while importing course from command line.

@carsongee Can you verify that this fixes your issue?
Updated.