null is right here, or just `return;`.

My earlier comment was in a view *function*. The functions should always return strings. Returned values from the scripts aren't used at all. [Take a look](https://github.com/Elgg/Elgg/blob/master/engine/classes/Elgg/ViewsService.php#L326).