Don't try to undefine a function that doesn't exist.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>