Minor code improvement

Reduce if- else on function countMenuChildren()
Reduce if-else on function render()
Merge branch 'html' of https://github.com/dgt41/joomla-cms into html