HPCC-11259 Fix toJSON output for empty property tree

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Merge branch 'wseclRestQueryNoParameters' into candidate-5.0.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>