Fix #109.

Check if udata_size is present in _module before resetting the udata
buffer.
Merge pull request #115 from ldx/issue109

Fix #109.