Fix NPE bug in getPermissionRule

EV-513

The getPermissionRule method checks that the status is not null before
using it.
Add some comment to clarify permission checking of null

EV-513

Clarifying why getPermissionRule checks for null status