The horror film directed by and starring John Krasinski and his wife, Emily Blunt, had the second-highest box office opening this year.