Fixing warning with php 5.4 and situation when a datarepeater with a template is the first thing output on a page.