Fix for missing model crash

error-checking wasn't being checked in the main loop itself