authz: ignore missing records for pending permissions
Created by: unknwon
On a high level, adds a quick check to ignore legitimately invalid/missing records when set repository pending permissions. Code comments have added to explain why it is needed.
A test case is added to simulate such scenario.
Fixed an issue a customer has encountered.