Fixes #35172.
CCoinsViewDB::Cursor() primed the first record without checking whether GetKey() succeeded, so a malformed first key in the coin keyspace was reported as valid. Next() already invalidates the cursor for the same failure.
Mirror that check in Cursor(), and add a regression test that writes a too-short DB_COIN key and checks the returned cursor is invalid.