ModMaterial : fix warning code. actions didn't return a value in all cases