Restructuring JDocumentTest and JDocumentRendererTest
Merge branch 'staging' of github.com:joomla/joomla-cms into staging
[bug] Fixing a series of warnings and a fatal error when you access index.php/component/tags. Fixes #4783