Fixes 5568bd4c16
`lastPos` isn't guaranteed to exist, though formations are most likely
required to make the situation happen in common gameplay.
Reviewed By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2960
This was SVN commit r23970.