fixed crash in web.js if modelInfos is empty