Eliminated recursion in minimizeInlineTags.split_into_disjoint_sublists

* The old code was already tail-recursive and was easy to convert
  to iteration form.

* Fixes the stack overflow on ar/قالب:أحواض_عمان?oldid=9394524

Change-Id: I0a9de6a6df96d18c4142a0b4483dc4fc6b0dc4a8
Merge "Eliminated recursion in minimizeInlineTags.split_into_disjoint_sublists"