Fixed NPE on empty tag.