empty_to_na function

Converts an empty vector to a scalar NA