A railroad company or receiver or lessee of a railroad company, operating a line of railroad in the state, shall keep clean at all times between the first day of April and the first day of November of each year all ditches and culverts constructed by them for the drainage of their roadbed or right-of-way. This section does not apply to ditches and culverts not located upon the right-of-way of a railroad.