When the modifier iterates to an empty layer with no frame it will return, while the correct logic is to continue.