That's better than being punished for the ai fucking up. Ai in gaming will never be perfect, well at least not for a very long time. They made the right choice to not punish the player when the ai gets in an enemies line of sight, atleast IMO. Luckily nothing like that ever occurred in my initial play through.