Not sure about what happens when create_resources is feeded with an empty hash.
In other places where I used it, I kept undef the default value and inserted something like:
```
if $scripts {
  create_resources(rclocal::script,$scripts)
}
```
Can you verify or eventually update the PR?