Merge: Mass import crashes if no hit is found (#279)

Fix bug #279