Fixed servlet/client incompatibility if parentSpanId is not provided

Could remove the blank line here and in the next method.