added defensive code around reading views that have no declared model.