It's held in by a little screw, so I expect you had a screw loose and it fell off
If you can't buy them separately (any dealer will be able to tell you from the part no.s) then you might get lucky with a smacked up or broken speedo off ebay or similar, and just rob the bit you need.