Fall back to nullRect in measureCharInner to work around Safari issue

Issue #2492