Do not return an error when the entity selection is zero

Please allow the following to work without throwing an error. Based on the field type being used, the result should be 0.

$max:=ds.ContactLog.query(“PeopleKey = :1”;$vl_peopleKey).max(“DisplayOrder”)