fix bug: unchecked npe during loading nonexistent resourceGroup