A Cornish clean energy company has been fined after a worker fell through a fragile roof.