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

This makes hiera fall back to the console logger when the process starts,
instead of crashing with a stack trace as soon as it tries to log something.