Fix pkgdb_open() not checking return status of pkgdb_open_multirepos()

This could lead to a crash as the db would not be open, yet the
execution would continue assuming it was.

Unable to open remote database "packagesite". Try running 'pkg update' first.
pkg: sqlite: library routine called out of sequence (pkgdb.c:2928)
Segmentation fault: 11