Fixes crash when typing notification is received while device is being rotated.