Protection of entanglement between two qubits trapped in coupled cavities via cavity architecture