fix for no logging.NullHandler pre 2.7