Take empty items query object into account in viewItems