Merge r1695170 from trunk: Avoid a crash when lacking correct DB access permissions. PR 57868. Submitted by: jailletc36 Reviewed/backported by: jim