Don't flush the cache if the device is lost
Handle the case when the TTF page fails to be created.

This can happen when the D3D device is lost, but some ttf function is called.