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