Luka Modric was denied the chance to send Croatia into the last 16 courtesy of a 98th-minute goal against Italy.