Fixed tile loading race condition and bug in tile-in-view checking code.