More robutst material indicator for particle system

Fix and make the indicator more solid by checking if we have a material slot, and if this slot has an actual material