Updated menu.php to fix an issue

As per issue
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33584&start=0
Merge pull request #3862 from aditya-did/patch-1

[#33584] Updated menu.php to fix an issue