I've seen this happen more than once in more than one place. When I am fighting a soldier or whatever, sometimes they just walk into places I can't get to and attack me from there. In Beckett's Quarry, I was fighting an Undead and as I was attacking him, he walked backward into thin air and straight over the lava pit

, I had to attack him with my gun...
Weird.