Fixed parser bug when there was no closing bracket for last tag.