GUAC-807 safeApply should be using a function parameter, not a random undefined value that's returned from a function.