Minor optimization for _.invoke()

_.isFunction() doesn't need to be called on each iteration in the loop. The result will never change.