Add missing table type check for no primary key check

Because NO_KEY table doesn't require primary key.