Fix bug in compile script when template is empty