IOT-1186 Fix OCRepPayloadSetUri to return error if it is not a collection.
IOT-1186 Fix OCRepPayloadSetUri to return error if it is not a collection.

Change-Id: I26d4454462eb70b9b6fa2c4a2902d094653ce30e
Signed-off-by: Arena Son <7fa94107b7160a524abe0a34d3d11f7257b05bcb@gmail.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9111
Reviewed-by: JaeKeun Lee <6641384529c8a1d25686871039cad119df7235e5@samsung.com>
Reviewed-by: Ziran Sun <3baa2a3e3c6d96dba4b6f1736d53815847db9a07@samsung.com>
Reviewed-by: Habib Virji <40be98b50fb6c4d79bd282a617e2cc82e300d47f@samsung.com>
Tested-by: Habib Virji <40be98b50fb6c4d79bd282a617e2cc82e300d47f@samsung.com>

rzr/iotivity,iotivity/iotivity,rzr/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity,rzr/iotivity,iotivity/iotivity,rzr/iotivity,iotivity/iotivity