Directive controllers do not return values

A fix in response to https://github.com/angular/angular.js/issues/8876