CRM-14226 getMenu() should not be called statically

Several civicrm event registrations failed on us with the following error:
Non-static method JApplicationCms::getMenu() should not be called statically
This is a small fix for this issue. (http://issues.civicrm.org/jira/browse/CRM-14226)