Fixed NPE if there are empty tagsets
Merge pull request #2605 from dominikl/search_by_tag_npe

Fixed Search by Tag NPEs