Prevent Host Updater from going in to an infinite loop.

The incorrect postion of the curly bracket caused the
Host Updater to create a new version object and to call
itself with out checking if the same version exists already.

Resolves openbmc/openbmc#1923

Change-Id: Ide8f98d67604a9ade272e69e20780f21cac01e0c
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/item_updater.cpp b/item_updater.cpp
index bf4ba38..3edfb0c 100755
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -111,7 +111,6 @@
                         versionId,
                         extendedVersion,
                         activationState)));
-    }
         versions.insert(std::make_pair(
                             versionId,
                             std::make_unique<Version>(
@@ -120,6 +119,7 @@
                                 version,
                                 purpose,
                                 filePath)));
+    }
     return;
 }