fixed NPE issue getCollectionItems API