[Bug 8502] mdb_cursor_count() == EINVAL for empty DB