Avoid crash on quit while editing a property

Could end up referencing a null-pointer.