Trappist: Small bug fix for Storage Depots

This is just a quick bug fix. The "optimizations" from last week caused an occasional (non fatal) exception when Storage Depots tried to determine the priority of factories to distribute and pickup goods. That should be…