Fix issue in linked hashmap impl where existing entry is not updated properly