Fixed some memory issues.

 * Added some checks.
Fixed some issues with hash.

 * Added some checks for NULL values.
 * Fixed undefined behavior with AXIS2_MALLOC in axutil_hash_copy function.