snap: error on empty snapshot
Merge pull request #1894 from xiang90/fix_snap

snap: error on empty snapshot