Define a NullHandler for Python < 2.7.