Optimize mkFn even when the body is not a return statement.