Check if controller inside directive is a function to avoid error on "if
(node.type == "FunctionExpression") {" See
https://github.com/angelozerr/angularjs-eclipse/issues/34