Fixed #52

Fixed issue with self-closing tags by replacing it with corresponding TAG_OPEN and TAG_CLOSE nodes.