Only store data if it is not null and if it is not an empty string.