Index: trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java	(revision 11559)
+++ trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java	(revision 11560)
@@ -7,5 +7,4 @@
 import java.io.InputStream;
 import java.util.EnumMap;
-import java.util.List;
 import java.util.NoSuchElementException;
 import java.util.concurrent.TimeUnit;
@@ -114,6 +113,6 @@
         idOffset.put(OsmPrimitiveType.RELATION, 3_600_000_000L);
         try {
-            final List<NameFinder.SearchResult> results = NameFinder.queryNominatim(area);
-            final PrimitiveId osmId = results.get(0).getOsmId();
+            final PrimitiveId osmId = NameFinder.queryNominatim(area).stream().filter(
+                    x -> !OsmPrimitiveType.NODE.equals(x.getOsmId().getType())).iterator().next().getOsmId();
             return String.format("area(%d)", osmId.getUniqueId() + idOffset.get(osmId.getType()));
         } catch (IOException | NoSuchElementException | IndexOutOfBoundsException ex) {
