Fixing bug in ScriptRequiredParameterList custom function