[PATCH 4.14 18/79] dm snapshot: properly fix a crash when an origin has no snapshots