Prevent division by 0 in history percent change function.