Issue #2009256 by phayes: Getting "Notice: Undefined offset..." When blocks are defined programatically