in my case, I added the title variable to the res.render call, but had not restarted the server. The change was not picked up and threw the error mentioned until I restarted the server.
Something like nodemon can help avoid this problem while you are developing.