`functionArgs` should give valid results on functions that have been identified with `lib.isFunction` instead of erroring out. (cherry picked from commit cf8e219b7e3c8933d6301175f2611990c5281ae9)