Closes #13807: Now checks for sys.stderr being there before writing to it.
Closes #13807: Now checks for sys.stderr being there before writing to it.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator