[MemoryMap] Fix segfault when block channel count is less than 3.

Also fixes several other potential segfaults related to invalid data
in other config options for the block.
(cherry picked from commit 94f22d626d026c833f53fc2d135a9b1a9066dc97)