fix #4135

Since we are accessing `_oldAttributes` directly in the next line, we can make this line more efficient by directly using:

```php
isset($this->_oldAttributes[$name]) ? $this->_oldAttributes[$name] : null
```