Update PrimitiveConverter.php

Map can contain null values
Fixed error when logging is enabled.

Fixed error in processing of Http request when logging is enabled and
request body is empty.
Merge remote-tracking branch 'upstream/master' into logging