Bug 739775 - Select->Distort activates topmost layer

Remeber the active layer in distress-selection.scm and set it again
when the script is done.

(cherry picked from commit 300b756e853ea3de77a05e3fe5abdfd2fb51d437)