Remove update_buf function

- Function was rarely used so it was removed from the lexer
Add test for Empty tag
Make tests pass

- Fix getting close and empty tags in elements