[JBIDE-13888] fixed user agent not being built from properties

Corrected the erroneous code that would always return <code>null</code>
when reading the user agent pattern from the properties. Added
RestServicePropertiesTest and RestServiceTest#shouldSetUserAgentToHttpClient