Robustness of the Kondo effect in a quantum dot coupled to Majorana zero modes