Make sure that Joomla is defined or define it!
Remove Joomla namespace
Thanks @Fedik
Merge pull request #5259 from dgt41/__sidebar_joomla_undefined

Remove Joomla namespace from sidebar script