Shortcut to Adiabaticity for an Anisotropic Gas Containing Quantum Defects