Fixes #16422 - Foreman API throws ruby exception with ovirt network API
Passing a 'nil' resource_class to the `scope_for` method will always result in a 500 as you cannot call `.where` on nil. (cherry picked from commit 9fb9397a7c8cbd96151cec54f2c4718f1a56ee96)
Related issues
Bug #16422: Foreman API throws ruby exception with ovirt network API
Fixes #16422 - Foreman API throws ruby exception with ovirt network API
Passing a 'nil' resource_class to the `scope_for` method will always result in a 500 as you cannot call `.where` on nil.
(cherry picked from commit 9fb9397a7c8cbd96151cec54f2c4718f1a56ee96)