The broken device can be re-obtained from the chest in the Head Mourner's office. To get it fixed, you will need a tarnished key, a piece of leather, a magic log and some toad crunchies. The gnome will still repair it after Mourning's End Part I is complete, but it is impossible to do so after completing Plague's End.