Deadlocks Stacking (from the deadlock's Stacking Belt boxes and loaders), research gates your mods ability to scan the base resources for copper, Iron, coal and stone, and with Coal being indexed as null it throws the error when placing the buy chest. I have triple checked the source of this error, and can confidently trace it back to NOT having done this research. Once the deadlocks stacking level 1 research is completed, click the black market button and run the scan, Voila, Solved.
I have now triple confirmed this with two other fresh starts, So longs as you have deadlocks stacking level 1 researched, and black market researched, it will work without errors. Deadlocks Stacking Level 1 research is the source of your issue.