Optical evidence for compatibility of antiferromagnetism and superconductivity in YBa2Cu3O6+x