Fix race condition - if the device manager is not ready when a packet arrives, drop it rather than NPE

Change-Id: I601b4ce1d449b169059a3390441dcfa58b800db3
diff --git a/core/net/src/main/java/org/onosproject/net/packet/impl/PacketManager.java b/core/net/src/main/java/org/onosproject/net/packet/impl/PacketManager.java
index bace763..1ecf5b4 100644
--- a/core/net/src/main/java/org/onosproject/net/packet/impl/PacketManager.java
+++ b/core/net/src/main/java/org/onosproject/net/packet/impl/PacketManager.java
@@ -130,8 +130,8 @@
         appId = coreService.getAppId(CoreService.CORE_APP_NAME);
         store.setDelegate(delegate);
         deviceService.addListener(deviceListener);
-        store.existingRequests().forEach(this::pushToAllDevices);
         defaultProvider.init(deviceService);
+        store.existingRequests().forEach(this::pushToAllDevices);
         log.info("Started");
     }