Fix error in builtin hook calling non-existing function

OTP-11238