Added exceptions for self-closing tags for :empty rule