CP-20: Make sure we don't add not-functions as callback functions.