Fourth seed Simona Halep was handed a tough opening draw at the Madrid Open, taking on Julia Goerges.