HPCC-10657 Fix WsSMC crash when failed in settiing 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>