astype checks notnull Fixes: #8732

As suggested in issue #8732 if there are no nulls, we skip the nan_safe bit.
needs to be tested with astype(str) (with actual string data that has nan and say floats that has nans) as well as this test