Williams was denied a 50th career triumph and first for the year, having finished runner-up at the Australian Open and Wimbledon.