The essential bound of a $k$-polymatroid and applications to excluded minor problems