Perhaps I am missing something but this looks inconsistent to me, i.e. skip_validations should bypass the guardian check either in both cases or in none of them.
In any case, I fixed this because I needed it myself (to have an importer create posts in private categories). Here is what I did:
Acabo de encontrar este error también. Muy frustrante que lo solucionaras hace 6 años y emitieras una solicitud de extracción que al final no fue aceptada.