Hitting "Cancel" on Directory Edit Page throws error