My hatred was already maxed out for the null/empty-string screwup.
It has been so long since I've been bitten by that particular "feature", I forgot about it entirely. Now that I remember: DAMN THEM. GOD DAMN THEM.
Be careful when a loop exits to the same place from side and bottom.