(#18718) Make the puppet logger fail to load if puppet is not loaded

This makes hiera fall back to the console logger