Add try..catch around template processing in file-info