Fixed bug when checking if cell contains data