Actually the polarizer does not work as shown on the picture. It is the electric field perpendicular to the wire grid which can pass the polarizer. Electromagnetic fields hitting a conductor will cause the electrons to move along the wire. This is more or less similar to light shining on a metal plate. The result is also the same: Significant portions of the wave get reflected and next to nothing is transmitted. As the conductors are wires, electrons can only move significantly in one direction, while they cannot move much in the perpendicular direction. Therefore, the electric field component which does not cause significant electron movement will be transmitted, while the other will not.
The waves cannot "pass" the empty space between the bars because we are talking about radio waves here. High frequency radio waves have a wavelength of 1m and more - much larger than the empty space between the bars. The design would not work, if the distance was much larger than the radio wavelength. In that case the radio wave could indeed simply pass through. So the bar distance needs to be small compared to the wavelength of interest. Otherwise the polarizer will not work.