adjust definition of NullHandler for python 2.6; use NullHandler from standard library if it exists