Set to use method $generator->generateTableName($tableName) instead of use checking len of $db->tablePrefix.