Account for possible null/undefined answer when searching by block id or type.