Croatia threatened to break the deadlock in the closing minutes when Nikola Vlasic's effort was saved by the legs of Morocco goalkeeper Yassine Bounou and Luka Modric blasted over.