Fixes #9137: base-tag is not outputted when head-tag has an attribute.
Code refactoring: code style in test file.
Tests: Added tests for config.baseHref.
Changelog entry.
Merge branch 't/9137'