The implementation used to always check F_Cu and B_Cu, rather than where the via started and ended (which will be different for blind/ buried vias and microvias).