Hah, that's the first (serious) glitch I've seen in about an hour of watching. It periodically respawns in a random part of the world, and looks like it had the bad luck to respawn in a mineshaft this time.
I'm actually surprised it doesn't get stuck more often in other situations. Its controller seems pretty good at avoiding it.