SENTRY-251: PolicyProviderForTest.addPrivilege breaks in some cases

(Sravya Tirukkovalur via Jarek Jarcec Cecho)