SOLR-801 follow-up -- Fix NullPointerException in case of multiple root entities when deleteQuery is not specified