Fix function getLogFromRegistry

Function did not use result returned from fillMessageArgs, which caused
message to contain %1, %2 instead of actual arguments passed to function

Tested:
  - Send invalid post which caused error message to appear in response.
    %1 and %2 were property replaced with this fix.

Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: If256afb1832f42783b94febde51986432e6922ca
diff --git a/redfish-core/include/registries.hpp b/redfish-core/include/registries.hpp
index d3d6c5f..da8fa85 100644
--- a/redfish-core/include/registries.hpp
+++ b/redfish-core/include/registries.hpp
@@ -99,8 +99,8 @@
     const redfish::registries::MessageEntry& entry = registry[index];
     // Intentionally make a copy of the string, so we can append in the
     // parameters.
-    std::string msg = entry.second.message;
-    redfish::registries::fillMessageArgs(args, msg);
+    std::string msg =
+        redfish::registries::fillMessageArgs(args, entry.second.message);
     nlohmann::json jArgs = nlohmann::json::array();
     for (const std::string_view arg : args)
     {