ISPN-4630 DistributedEntryRetriever throws NPE if iterator is closed

before processing all responses

* Fixed issue where null check was done on wrong objects

https://issues.jboss.org/browse/ISPN-4630