* Add `if (session != null)` in the `RemoteFileTemplate` around `dirty()` (cherry picked from commit 1d5e66b0ee)
1d5e66b0ee