Added check on retrieving deleted records in List and Set management to avoid NPE.
Added also a Warning in that case.
Added testcase in List or Set iteration (ObjectDatabase) in case of record deletion