Robot fixes.

Also fixes #5244.
No, all MMI checks have a null check as far as I am aware.