It's not clear that this is meant to exit the same subalgorithm as the replaced line.  Since you opened up a new nested OL, it looks like that's the subalgorithm you're referring to.  This needs to be rewritten to be clearer about what's being exited.