Merge "Fix potential NPE in isDefaultIme" into main