I think it is complaining because uvm_config_db :: set function does not return any value, whether set was successful or not. So if you use inside a if statement will cause this failure.
Try removing the if statement and just keeping the set function. See if this works…
- Ashith