Due to a probable copy/paste typo, the template light object data was linked to an object called MyCam. This would cause Blender to create a light called MyCam.001. This patch renames this object to the expected name MyLight.
Thanks, committed rB1fa61c88437aab557e38f9cb4ef12a3eab3b592e
Thx for finding this @Loïc Carr (dimtion), since this is such a small and safe change, I guess it is fine if I commit this...
oh, @Campbell Barton (campbellbarton) was quicker :)