[PATCH 4.9 14/66] dm snapshot: properly fix a crash when an origin has no snapshots