Fixes #7 by using ResourceGroup only if it exists.

An alternative to https://github.com/ckan/ckanext-qa/pull/8