fix for issue #5: "Input string was not in a correct format" error filling the Sitecore logs