Added NULL check before freeing properties in rz_getPropertyNames.