edit form can be null when the app is loading (win)