getModelDictionary: return empty dict instead of failing

When there’s no model, it’s OK to return an empty dict. Use
`modelExists` to make sure there is a model.