fix(viewDirective): $injector.has() not in angular#1.0.8

$injector.get() throws if the provider is not available, so this block needs to be
wrapped in try / catch.