Ensure correct scope is used when ids is empty

When an empty set of ids was specified, the default index scope was being invoked, returning all needs instead of none as it should have been. To get Mongoid to do the right thing, we pass in an empty array when the id param is blank.