Issue #18541: simplified LoggerAdapter example.
Fix potential NULL pointer dereferencing in ast module
CID 719690