Set title of proposal page

Check document queried before returning it