This is a known problem with the ideal SR latch with perfectly matched gates. If the gates have any mismatch in delay, like a real latch will, then the circuit will find a stable state. The only problem is, you don't necessarily know which gate is slower.
So like the old joke goes, if it...