The problem is that you have records where the bitmap is not assigned, so in this part of the code:
if (cell.Value == null)
{
}
else
{
pdfTable.AddCell(cell.Value.ToString());
}
Not sure on the correct code but you should do something like
if (cell.Value == null) && (cell.ValueType == string)