[bug] Fixing a series of warnings and a fatal error when you access index.php/component/tags. Fixes #4783