The action item "Save modified buffers" no longer exists. Therefore you should no longer call
(lw:undefine-action "Confirm when quitting image" "Save modified buffers")