Existing-home sales closed 2017 on a softer note, but the prospects for sales gains in the months ahead look brighter, as contract activity edged higher in December for the third straight month.