Mariska Hargitay has been on “Law & Order: SVU” for over 25 years at this point, but that historic run was almost cut short.