In an environment of sliding TV ratings and a generational shift away from free-to-air television, Australian Ninja Warrior has defied all the odds.