ENH: Add warning when setting into nonexistent attribute
 - [ ] closes #7175
 - [ ] closes #5904
 - [ ] tests added / passed
 - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff``
 - [ ] whatsnew entry
