Revert "Fixes for setTags() and empty tags"

This reverts commit ce0414a547ddd9ab97ad8bde717d3e7bc5505551.