Fixes #16463 - Fix with_taxonomy_scope when taxable_ids = []
The old implementation of taxonomy_scope was relying on calling `scope.where(:id => [])`, it did it 'if taxable_ids'. A recent change introduced more checking into that condition (taxable_ids.present?) which made the case when taxable_ids == [] not run any scope.
That results in objects not being scoped at all when taxable_ids is an empty array.
Related issues
Bug #16463: with_taxonomy_scope returns all objects when no taxable ids available
Fixes #16463 - Fix with_taxonomy_scope when taxable_ids = []
The old implementation of taxonomy_scope was relying on calling
`scope.where(:id => [])`, it did it 'if taxable_ids'. A recent change
introduced more checking into that condition (taxable_ids.present?)
which made the case when taxable_ids == [] not run any scope.
That results in objects not being scoped at all when taxable_ids
is an empty array.