Added extra error check to verify training frame contains at least one string column.