added some protection for incomplete models i.e. no objective functions
Authored by: bgoli 2012-01-05
Parent: [r970]
Child: [r972]