Added a range check to TConstructBlock.getIcon

Fixes http://pastebin.com/1hhKagD1