Avoid exceptions when parsing cell values