snap: error on empty snapshot

Fix #1880