fix for custom resource inventory scripts that return simple numbers (not lists) #4427
===VersionHistory:Pending===
Merge branch 'V8_2-branch'