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

Tile failed moved from pr1839 dev 5 0