JCR-1934: improve validation child node adding