Correction of  nullpointerException when provider return null
correction of NullReferenceException on dnn upgrade