A better option than just leaving the sprite unchanged to indicate a missing sprite would be purposefully throwing a warning, example here:
else
{
Debug.LogWarning("Sprite Index missing a sprite at Index " + spriteIndex + " On object " + gameObject.name);
}
Just a heads-up