The troubling leak — which some people initially dismissed as an April Fool’s Day prank — occurred at a time when media companies are working harder than ever to curtail digital piracy of content. Illicit recordings of films usually appear on the Internet shortly after their theater debuts, but leaks before the premiere dates are rare. Hollywood studios spend millions of dollars to track every step of the film production process to avoid such potentially costly leaks.