Fix panic while merging 'nil' values