Fixes open file leak when a path is sent instead of an I/O stream
Merge branch 'fix_open_file_leak_on_upload' of https://github.com/cpuguy83/flickraw