let _safeProtoExtend function safer.

_safeProtoExtend function will reset a non-exist function to 'undefined', so it is not safe enough.