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)
latest
Status Name Job ID Coverage
  Check
passed pep8 #12155

00:02:19

passed pyflakes #12154

00:04:12

 
  Build
passed build #12156

00:04:56