[3.x] Made number_format behaviour on null argument compatible with Twig.

#250