Fix empty tags appearing in template

Without this if, if you have a newline between tags to separate between tag types, it will output a line with just a "@".