Story 43822883: Reordered ajax:complete handler for modals so modal form does not get removed from DOM before trying to access it.