of-config: fix crashes with invalid resource-id
Merge pull request #273 from yamt/fix-of-config-invalid-resource-id

of-config: fix crashes with invalid resource-id