T3Layout: Fix discard changes on close
Fix: https://github.com/t3framework/t3/issues/125