Fixed issue #4135.

@qiangxue why ```getOldAttribute($name)``` use ```isset```?