Null check for parent logger

Hey Dan,

Parent logger is null in some cases when namespace is a single hierarchy. 

Thanks,
Satya.