Fix SnapshotTest crash

For Android 12 vendor project, SnapshotTestEnvironment setup is skipped. So, test_device is not initialized, which will cause other tests to fail.

BUG:350678717
Test:run vts -m vts_libsnapshot_test
(cherry picked from https://android-review.googlesource.com/q/commit:a791e913048801a2a74beaea42b992c380eb8c2c)
Merged-In: I6ce6a9e7ea2c210e25c2a5ffadaaa6348086ea7f
Change-Id: I6ce6a9e7ea2c210e25c2a5ffadaaa6348086ea7f
1 file changed