ZEN-10549: The fix hides StopIteration error.