don't format number if number is None
don't format number if number is equal to
improve conditional expression in number formatting
specify exception as TypeError
Merge pull request #536 from plomino/fix-number-format_value

don't format number if number is None