Merge Arrays with nil elements properly