Fixes access to block/boundary names given material property

(closes #4420)
Same here