Small fix, if the model is only opened, but not used, closing it gave
NPE