Fixed a "not defined" bug with resumable upload handler.

There was a small problem with my previous check-in that was not picked up by any tests. This fixes that problem.