fixed crash when no provider is set for TextRule