[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.