Fix an exception when the DeprecationFormatter is initialized with an IO stream that doesn't respond to :path.