BUG: resolving issue 16357 - added a check to see if input is pandas.NaT
 - [x] closes #16357 
 - [ ] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [ ] whatsnew entry
