astype checks notnull Fixes: #8732

As suggested in issue #8732 if there are no nulls, we skip the nan_safe bit.
add the issue number as a comment here