fix bug where an empty model whould result in slate bailing out