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?
@mmprandom Can you update the docstring for this method since the parameter name and semantics have changed?  Thanks.