albumartcache: Don't close non-existing stream on error

When a file fails to open, the stream variable is not assigned
and we jump to the exception handling code, which tries to close
the stream that hadn't even open.

This segfaults immediately.

Fix that by not trying to close the stream if it had an error.
3 jobs for wip/gbsneto/fixups in 9 minutes and 9 seconds (queued for 2 seconds)