Fix NullHandler on Python2.6