[PATCH 4.19 022/116] dm snapshot: properly fix a crash when an origin has no snapshots