$b$-invariant edges in cubic near-bipartite brick