Clean up handling of dependencies on close of Add/Edit Rec panel. The deps had been cleared and replaced with the contents of the JList on the advanced tab, but the rec already contains the current list. The dependencies are reset to the original list if the user hits "Cancel".
Fixes bug 2824497.