Clean up of the model_loop() checking.
Authored by: bugman 2009-03-25
Parent: [r8997]
Child: [r8999]