util: New function nullable_xstrdup().