Fixed trailing-comma in too-long JSON discovery packet
Fixed trailing-comma in too-long JSON discovery packet

The logic for removing the trailing comma in the event that a resource
was improperly added was reversed.  This removes the "NOT" to correct
this so that the comma is only removed in the event that it was actually
added.

Change-Id: I4f6037198ef7a67cd3d83d77f5e27aebb7cc0b28
Signed-off-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1155
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>

WojciechLuczkow/iotivity,santais/iotivity,santais/iotivity_1.1,rzr/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,santais/iotivity_1.1,santais/iotivity,santais/iotivity,WojciechLuczkow/iotivity,santais/iotivity,iotivity/iotivity,santais/iotivity_1.1,santais/iotivity_1.1,santais/iotivity_1.1,rzr/iotivity,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,rzr/iotivity,iotivity/iotivity,santais/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1.0,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,rzr/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1,santais/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1,iotivity/iotivity,santais/iotivity_1.1.0,rzr/iotivity,iotivity/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,santais/iotivity,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,iotivity/iotivity,rzr/iotivity,santais/iotivity_1.1.0