[VOL-2107] SIGSEGV while disabling a device

Fixed segmentation fault while
deleting a device which can not be connected.

Change-Id: I70f50d460f16d0bb8cca886b1dbfccf9525cd0c7
diff --git a/adaptercore/resourcemanager/resourcemanager.go b/adaptercore/resourcemanager/resourcemanager.go
index 3757e37..e412bb6 100755
--- a/adaptercore/resourcemanager/resourcemanager.go
+++ b/adaptercore/resourcemanager/resourcemanager.go
@@ -419,7 +419,10 @@
 func (RsrcMgr *OpenOltResourceMgr) GetCurrentFlowIDsForOnu(PONIntfID uint32, ONUID uint32, UNIID uint32) []uint32 {
 
 	FlowPath := fmt.Sprintf("%d,%d,%d", PONIntfID, ONUID, UNIID)
-	return RsrcMgr.ResourceMgrs[PONIntfID].GetCurrentFlowIDsForOnu(FlowPath)
+	if mgrs, exist := RsrcMgr.ResourceMgrs[PONIntfID]; exist {
+		return mgrs.GetCurrentFlowIDsForOnu(FlowPath)
+	}
+	return nil
 }
 
 // UpdateFlowIDInfo updates flow info for the given pon interface, onu id, and uni id