Fixes bug when there is no element to deserialize (pop timeout) => Check that the item exists before deserializing.