Fix handling of self-closing tags (closes #31)