Halep survives injury scare in tough first-round win