TEIIDDES-2010 Added check for no available schema nodes to prevent NPE