Fixed NaN issue when there is a blank preview after adding new medications or supplements.