Added check to see if parent was in trash when restoring.