Ticket #455 - Couple without children cause errors
Was trying to sort children array before we checked
if it was empty or not.
Merge branch '3.4.1' into 3.5.0
Ticket #455 - Couple without children cause errors