A construction company based in Derbyshire has been fined after a worker was seriously injured when he fell through a void.