While i am not sure, based on this error my guess would be that the key you use to search the item is sometimes empty resulting in this error. Are you sure the key you use to search the object is always present?
Maby you could present us with the complete stacktrace, so that we can find out.