Fix getDoc to work even when no local models available.