nanull function

Returns if not NA; else converts NA to NULL.