Fixed argument null exception when creating JSON serializer with default settings.