Fix instrumentation button no longer working if the user cancels the file replacement dialog.