setValue to consider null/undefined/NaN values