Check that an error is reported, rather than crashing, when trying to do a package scoped function call when the function does not exist in the package or is not a function. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>