Fixed a race condition when the model is initially loaded asynchronously.

Sometimes, the model gets loaded when the contentBox is not yet set
so _refresh gets called too early.