Thanks for reporting, should be fixed in new version.
I managed to get the error to happen by making science packs spoil in a lab until the extra spoilage inventory is full, then letting some more spoil so it can't go in the spoilage inventory, so it stays in the agricultural science slot. Not sure if that's the same thing that caused the error in your game but it should be fixed either way.