Harrogate Town booked their place in the third round of the FA Cup as Dean Cornelius’s second-half header knocked out seventh-tier Gainsboroghh Trinity.