Fix for None value passed to truncate