Replace null reference with empty string