Last cell deletion bug

Before this fix deleting the last cell would prevent scrapbook.js from
adding new cells, since the id of the second last cell is less than
nextCellId, and we create a new cell only on the condition that the
cell that was just evaluated has its id equal to nextCellId.