Set the 'Hostname' against the correct variable.

This correctly sets the Hostname value, otherwise it's an empty string.

I couldn't work out where to hook in tests for this as it wasn't clear how the logstreamer plugin uses `Message` structs. However, this method is used in 3 other locations in the code without tests.