Only resize the frames header if we have set a model
It's unnecessary to do so otherwise and apparently leads to crashes.