Fix crash accessing a nil property