HPCC-11339 Remove unnecessary scoping on call to isCompulsory

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>