Provided that no such deduction shall be allowed when the liability of the mine owner to the company is a liability arising out of an arrangement between the mine owner and the company with respect to the working of minerals under or near the railway or works.