diff --git a/includes/entity.wrapper.inc b/includes/entity.wrapper.inc
index 860d2c333..962669677 100644
--- a/includes/entity.wrapper.inc
+++ b/includes/entity.wrapper.inc
@@ -782,7 +782,8 @@ class EntityDrupalWrapper extends EntityStructureWrapper {
     elseif ($this->id === FALSE && !$this->data) {
       $this->updateParent(NULL);
     }
-    elseif ($previous_id !== $this->id) {
+    elseif (($previous_id === FALSE && $this->id !== FALSE)
+      || ($previous_id != $this->id)) {
       $this->updateParent($this->id);
     }
     return $this;
