[ticket/12892] Do not set S_NUM_ROWS when adding a row to a template loop

We do not set S_NUM_ROWS while adding a row, to reduce the complexity
If we would set it on adding, each subsequent adding would cause
n modifications, resulting in a O(n!) complexity, rather then O(n)

PHPBB3-12892
Merge pull request #2779 from nickvergessen/ticket/12892

[ticket/12892] Do not set S_NUM_ROWS when adding a row to a template loop

* nickvergessen/ticket/12892:
  [ticket/12892] Do not set S_NUM_ROWS when adding a row to a template loop
Merge branch 'develop-ascraeus' into develop

* develop-ascraeus:
  [ticket/12892] Do not set S_NUM_ROWS when adding a row to a template loop