A Jellett type theorem for the Levi curvature