check for a null tile buffer, to avoid crashes.

not sure how we manage to get here with a null tilebuffer...