Fixed properly IM context state reset on focus change, initialize nativeContext ptr with null in order to avoid mess in IMEStateManager