Add special case to handle empty value in tag while indexing

Github #20
Add test for bug #20 (index fails on empty value in sourcetag)
Merge pull request #21 from anchor/fix-issue-20

Fix issue 20