Robot fixes.

Also fixes #5244.
Wouldn't it cause a runtime for robots, since O.mmi is null for them?