Issue #393: Reverting a layout does not revert.

Fixes https://github.com/backdrop/backdrop-issues/issues/393.