Make sure there actually are tags in the array.

Without this, a file with only the echoing tag type would get stuff
spliced in the wrong place.
Merge pull request #13 from hasallen/master

Make sure there actually are tags in the file about to be spliced.