Fix an exception when the DeprecationFormatter is initialized with an IO stream that doesn't respond to :path.
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.