Your income will go negative if you build railways if you have the items you need set to buy in WM screen. The minute you build a railway then the game will start buying again. If you are producing the items then if you build a railway these items stop getting exported and start going into your stockpile again. Income will drop in that case as well.