The nuclear-locomotive is created as a deep copy of the locomotive. When changing the fuel_category to nuclear the code doesn't take into account that another mod might have already added a fuel_categories property to the locomotive which takes precedence. The end-result is that the fuel remains unchanged for the nuclear-locomotive.
https://wiki.factorio.com/Types/EnergySource#Burner