Middlesbrough's unbeaten start to the season comes to an end as Crystal Palace claim their first win of the new campaign.