Fix NPE with connected textures icons. There are still some issues with
ordering of multi-pass rendered blocks.