Prevents a possible bug which occurs when the caller-provided open() function throws; then the "uri" field is never set.
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1168