Update hg.php

A facaded function that returns NULL will cause the chained function to return new static. This allows chaining to continue if the facaded function returns NULL.