Merge pull request #1757 from GoBoundless/undefined_method_path_master

Fix an exception when the DeprecationFormatter is initialized with an IO stream that doesn't respond to :path.
changelog for #1757
[skip ci]