#JC-1533 Branch Edit Permission dialog: fixed error 500 after click on OK or Cancel button