A security created on the fly could not be used in the current edit session. This change fixes this problem. BUG: 394394 FIXED-IN: 5.0.2 (cherry picked from commit 87d3c4ef)