Fix exceptions being thrown in __toString: Method Illuminate\View\View::__toString() must not throw an exception