Fix weird whitespace case for no template contents