Bug 1031710 - Error on task page pagination and Create task button

Fix template which was erroneously reporting no records