1) Fix for NullPointerException on key permission creation with no actions