Added error handling for tile definition setup so errors won't silently cause things to fail.