If you're doing a `while (child)` loop then you need to maintain the previous reference other it'll always evaluate to null!

The next `if (first != child)` statement is always true otherwise and hence the `render: only one element per template is supported.` error :)