Monte Carlo test of a hyperscaling relation for the two-dimensional self-avoiding walk