don't format number if number is None

Goal of this change is to don't show 'formatError' if the number is equal to None or "" (and let it empty).