Jeff Hendrick's goal helped Burnley climb to seventh in the Premier League with a 1-0 win over Newcastle.