Handling exceptions.ImportError for environments without ibus.