[PATCH openEuler-1.0-LTS 104/111] dm snapshot: properly fix a crash when an origin has no snapshots