Update StatService.php

change null to empty string.