Fix #109.

Check if udata_size is present in _module before resetting the udata
buffer.