Fixed undefined variable

...when no provider exists.