[#33928] Minor code improvement

Reduce if- else on function countMenuChildren()
Reduce if-else on function render()

tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33928