Prevent NoSuchElementException if no hosts are found

Change-Id: I7c2b95fda87ca1281e99e1771c88dfd6967db8fd
diff --git a/apps/routing/common/src/main/java/org/onosproject/routing/impl/BgpSpeakerNeighbourHandler.java b/apps/routing/common/src/main/java/org/onosproject/routing/impl/BgpSpeakerNeighbourHandler.java
index 4ebaac2..b98b69a 100644
--- a/apps/routing/common/src/main/java/org/onosproject/routing/impl/BgpSpeakerNeighbourHandler.java
+++ b/apps/routing/common/src/main/java/org/onosproject/routing/impl/BgpSpeakerNeighbourHandler.java
@@ -154,13 +154,14 @@
             case REPLY:
                 // Proxy replies over to our internal BGP speaker if the host
                 // is known to us
-                Host h = hostService.getHostsByMac(context.dstMac()).stream()
-                                                                    .findFirst()
-                                                                    .get();
-                if (h == null) {
+                Set<Host> hosts = hostService.getHostsByMac(context.dstMac());
+
+                if (hosts.isEmpty()) {
                     context.drop();
                 } else {
+                    Host h = hosts.stream().findFirst().get();
                     VlanId bgpSpeakerVlanId = h.vlan();
+
                     if (!bgpSpeakerVlanId.equals(VlanId.NONE)) {
                         context.packet().setVlanID(bgpSpeakerVlanId.toShort());
                     } else {