Fixed a crash in IMove

Discovered while testing #4568 for regressions.