Fix #1140 (CoTemplate error on zero sized TPL files)