The effects of boundary imperfections on convection in a saturated porous layer: near-resonant wavelength excitation