Is the error message you're getting exactly as you've posted it?
The "Couldn't load None" portion of the message is the message for trying to load up minerals from a colony with none. However, it should tag it with the name of the colony you're attempting to pick up from. Such as "couldn't load None from Luna", or "couldn't load None from Phobos", etc.
If it's actually coming back with "celestial_body_name", unless that's literally what you named the colony, it would appear it's not trying to pick up from the colony you're targeting at all. Rather, it appears to be trying to pick up from something undefined? I don't know enough to say for certain, but this one reeks of a DB error.
Edit: Technically I think it should be "unable to load None".