Existence of optimal controls for systems driven by FBSDEs