Fix None object has clear() in input mode icon. (#1097364)