Requests stuck in staged state for weeks
**Impact of the bug**
Requests stuck in staged state for weeks

**Describe the bug**
There are 10 requests stuck in `staged` state for weeks: https://dmytro.web.cern.ch/dmytro/cmsprodmon/workflows.php?stuck_state=staged&stuck_min=21 It might be an indication for a bug in work-queue

**How to reproduce it**
Check the request logs

**Expected behavior**
They should not get stuck in this state for days

**Additional context and error message**
None

diff --git a/src/python/WMCore/WorkQueue/Policy/Start/Block.py b/src/python/WMCore/WorkQueue/Policy/Start/Block.py
index 3f1a5b0e5..505bcf91e 100644
--- a/src/python/WMCore/WorkQueue/Policy/Start/Block.py
+++ b/src/python/WMCore/WorkQueue/Policy/Start/Block.py
@@ -223,7 +223,7 @@ class Block(StartPolicyInterface):
             return dict()
         # blocks with 0 files in Rucio should be ignored as well
         blockRucio = self.rucio.getDID(didName=blockName, dynamic=False)
-        if not blockRucio['length']:
+        if not blockRucio.get('length'):
             logging.warning("Block %s being rejected for lack of files in Rucio to process", blockName)
             self.badWork.append(blockName)
             return dict()
['src/python/WMCore/WorkQueue/Policy/Start/Block.py']