adjustment for possible null-like values in deepMerge