It is not intentional, however he would get stuck anyway, because there would be nowhere to go next (he must see the second door)
The solution is to place an item in bottom right corner, so he comes out of that room and sees the enemy
I tried that, but for some reason, he'd grab it and double back towards the door