Added isset checks to material item tpl file