NXP-9343: avoid NPE when StudioSnapshotHelper.getSnapshot(pkgs) returns null