Detect null or non-buffer tile

Detect null or non-buffer tile before passing something invalid to tiletype.