REGR: Fixes first_valid_index when DataFrame or Series has duplicate row index (GH21441)
- [x] closes #21441 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
