Fix cell merging to not result unneeded white spaces

Merging table cells which contains &amp;nbsp; will no longer result 
in the cell that was merged having unnecessary white spaces.