David Wagner says his Huddersfield side deserved to lose as they suffered their first defeat in the Premier League.