DNN-6218 + DNN-6242: another fix for DB logging provider throws errors.