[DF-3836] Fix assert on closing new scene