Fix getModelOrCreate to better handle not readable existing models