Sweet! So I tested here, all works fine, and Im using Forward Render in this lighthouse scene, just a plus, I add a group of note to exclude the Skybox from the fog, cause look this images below, look the trees leaves.
skybox receiving fog
skybox without fog
the bp updated:
divide value = 1000, feel free to take out the Switch node