Fix error in cells at the right edge in Microsoft Excel.
This occurred because the code for retrieving overlap info assumed there was always a cell to the right, causing an exception.
To fix this, catch this exception and treat this as if there is an empty cell to the right.
Fixes #5041.