iOS crash when dismissing system keyboard

this seems like it may have been introduced in unity updates.
we’re on unity 5.3.3f1.

when the iOS system keyboard is dismissed (via hide, cancel, or done),
the app crashes.

the log has this:

SpringBoard[3142] <Warning>: HW kbd: Failed to set (null) as keyboard focus
SpringBoard[3142] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated

this turned out to be a bug in the textmeshpro TMP-inputfield class we were using.

this line needs a null-check:

caretRectTrans.localPosition = Vector3.zero;