Fixing the order of smoke test reporting

brokenReport() would assert an error on finding missing links because of which rest of information was not printed on failing templates. To fix that, changed the order of the reporting.