Fix: Handle undefined datapath when editing controllers