Fix the "addHeader($tag, $attributes, $text)" methods to not ignore the $text parameter

Also support closing tags with no text content given

Conflicts:
	lib/private/template.php
Merge pull request #11080 from owncloud/addheader-text-2

Fix the addHeader tag attributes text methods to not ignore the text parameter