HPCC-10657 Fix WsSMC crash when failed in setting WU priority

When an invalid WU ID is used to change WU priority, ESP crashed
inside WsSMC. This is because an invalid point to WU was returned
for the invalid WU ID and WsSMC did not validate the point. In
this fix, the validation code is added to the WsSMC.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Merge pull request #5278 from wangkx/h10657

HPCC-10657 Fix WsSMC crash when failed in setting WU priority

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>