Fixes #7 by using ResourceGroup only if it exists.