Moving addClass('failed') as suggested in PR #1839
Merge pull request #1940 from will-moore/tile_failed_moved_from_PR1839_develop

Moving addClass('failed') as suggested in PR #1839