clarified issue where function is below a return statement and the $inject may be unreachable (this may happen in a directive)