Update Part.php

Patch to make sure value is 0 if value is null