Throw an error if a self closing tag has content

closes #1301