No dividends shall be declared due and payable to stockholders of any stock insurance company, except out of the surplus earnings of the company unless otherwise provided for in this code.