Fixes crash when setting nil string on attributed string