CRM/Core - Fix isCoreTable to check for tables instead of classes