Donnie, the gaps aren't a code issue in CMU construction. Set back is. The plates are only for a clean finish on the exposed block.

The masons always mud in behind the boxes and point them up anyways.

Roger