Issue #1658164 by Rob Loach, Berdir: Fixed TableSort Class not found exception thrown in database_test_theme_tablesort().