Fix for import error if import is run while blender is in edit mode.
Merge pull request #107 from Ghostwalker71/fix/import_edit_mode

Fix for import error if import is run while blender is in edit mode.