Fix crash in native_lookup() when the native is not found

This fixes issue #30.