Error clicking on blank cells

When clicking on a blank cell for the month, we get stick in the while
loop.
Error clicking blank cells

When clicking blank cells in the calendar. we get stuck in the loop.