A header from a corner and a penalty took West Ham to victory over Newcastle in a game of few chances and little inspiration