The problem you have run into is caused by the use of the reproduction speedometer. The aftermarket makers replicated a later model H-D speedometer and then tried to make it a retro fit by placing an early style face on it. They are inexpensive but they are what they are, cheap repop.
1936-1947 H-D speedometers are lit by the speedometer lamp bulb's light passing through a window in the front of the speedometer shell. 1948 & later speedometers are lit by a bulb in a special socket that is pressed into the speedometer shell. The dash base was redesigned in 1947 and has the room to accomodate the 1948 & later speedometer lamp socket.
You might find a small socket that would fit in the reduced space between the speedometer & the 42WLA dash base but you will have to remove your current speedometer lamp bulb and wire the socket into your speedometer lamp switch. However, something to think about. This is a cheap fix for a valuable machine. There is a reason that original 42WLA speedometers hover around $800 to $900 rebuilt. They work proberly and they add serious value to the machine.
First photo: 1945 42WLA with correct speedometer. The window can be clearly seen.

- 1945-42WLA-Closeup.jpg (243.9 KiB) Viewed 215 times
Second photo: Unrestored 1951 FL with original speedometer. The speedometer lamp socket can be seen inserted in the later style speedometer.

- 1951-FL-Closeup.jpg (241.73 KiB) Viewed 215 times
Third photo: Restored 1948 FL with restored original speedometer. The speedometer lamp socket can be seen extending down from the speedometer head.

- 1948-FL-Closeup.jpg (231.63 KiB) Viewed 215 times