libsnapshot: fix null pointer deref

Bug: 148129196
Test: TH
Change-Id: If6a628fe1bcb3006c7a21021162488a807a7f9f7
1 file changed