CRM-12601 - Restore getClasses() and mitigate damage from missing functi...

...on

----------------------------------------
* CRM-12601: Test suite crashes - CRM_Core_DAO_AllCoreTables::getClasses
  http://issues.civicrm.org/jira/browse/CRM-12601