Description
Values in an object returned from a query may be an empty object or an empty array.
If such cases, calling bo.keySet().isEmpty() always returns false (the result is hardwired in the method override), depsite the fact that bo.keySet().size() == 0.
A simple fix is to change the org.bson.util.StringRangeSet.isEmpty() implementation to:
@Override
public boolean isEmpty()