Fix length value for mb_substr in PHP 5.3.

Passing null as $length parameter will end in an empty result from
mb_substr in PHP 5.3.