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